/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b.model.member;

import com.umf.b2b.MerchantBaseRequest;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

/**
<p>Title:WithdrawalOrderInfo</p>  
<p>Description: ���ֽ��ײ�ѯ</p>
 */
public class WithdrawalOrderInfo extends MerchantBaseRequest{
	
	private String order_id;//*����ش� [��Ӧ����] ����ʱ�̻�ƽ̨���͵Ķ����š�
	private String mer_date;//*����ش� [��Ӧ����] ��������
	private String url = "/withdrawal/orderInfo";
	
	private String amount;//[��Ӧ����] ���ֽ��,ԭ���׽��+������
	private String mer_check_date;//[��Ӧ����] ����ƽ̨���ɵĸñ����ֵ����ڣ�����ƽ̨�����ƽ̨����ʱʹ�ø���������׼��
	private String trade_no;//[��Ӧ����] ����ƽ̨��ˮ��
	private String trade_state;//[��Ӧ����] 0��ʼ1�ɹ�2ʧ��3������4���׹ر�
	private String com_amt;//[��Ӧ����]
	
	@Override
	public String getRequestUrl() {
		return baseUrl + url;
	}

	@Override
	public WithdrawalOrderInfo doRequest() throws Exception {
		Message<WithdrawalOrderInfo> response = UMFUtil.get(createAPIContext(), this,WithdrawalOrderInfo.class);
		MerchantBaseRequest baseResult = convertResult(response, WithdrawalOrderInfo.class);
		if(baseResult == null)
			return null;
		return (WithdrawalOrderInfo)baseResult;
	}

	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getMer_date() {
		return mer_date;
	}

	public void setMer_date(String mer_date) {
		this.mer_date = mer_date;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getMer_check_date() {
		return mer_check_date;
	}

	public void setMer_check_date(String mer_check_date) {
		this.mer_check_date = mer_check_date;
	}

	public String getTrade_no() {
		return trade_no;
	}

	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}

	public String getTrade_state() {
		return trade_state;
	}

	public void setTrade_state(String trade_state) {
		this.trade_state = trade_state;
	}

	public String getCom_amt() {
		return com_amt;
	}

	public void setCom_amt(String com_amt) {
		this.com_amt = com_amt;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("WithdrawalOrderInfo [order_id=");
		builder.append(order_id);
		builder.append(", mer_date=");
		builder.append(mer_date);
		builder.append(", url=");
		builder.append(url);
		builder.append(", amount=");
		builder.append(amount);
		builder.append(", mer_check_date=");
		builder.append(mer_check_date);
		builder.append(", trade_no=");
		builder.append(trade_no);
		builder.append(", trade_state=");
		builder.append(trade_state);
		builder.append(", com_amt=");
		builder.append(com_amt);
		builder.append(", version=");
		builder.append(version);
		builder.append(", mer_id=");
		builder.append(mer_id);
		builder.append(", ret_code=");
		builder.append(ret_code);
		builder.append(", ret_msg=");
		builder.append(ret_msg);
		builder.append(", links=");
		builder.append(links);
		builder.append("]");
		return builder.toString();
	}

}
